package com.stbu;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
@RequestMapping("/test")
public class MyController {
//    @GetMapping("/toWelcome")
    @RequestMapping(value = "/toWelcome",method = RequestMethod.GET)
    public String toJsp() {
        return "welcome.jsp";
    }

    @RequestMapping("/toParam")
    public void getParam(@RequestParam("u1") String u) {
        System.out.println(u);
    }

}
